/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package datasource;

import dynamixel.Actuator;

/**
 *
 * @author minaev
 */
public class DynamixelSource implements DataSource{

    Actuator act;
    int addrs; 
    int cnt;

    public DynamixelSource(Actuator act,int addrs,int cnt) {
        this.act = act;
        this.addrs = addrs;
        this.cnt = cnt;
    }
    
    @Override
    public double getData(double param,double param2) {
       return act.readParam(addrs, cnt);
    }
    
}
